import 'package:kepu/generated/json/base/json_field.dart';
import 'package:kepu/generated/json/plant_detail_entity.g.dart';
import 'dart:convert';
export 'package:kepu/generated/json/plant_detail_entity.g.dart';

@JsonSerializable()
class PlantDetailEntity {
	late int code;
	late String msg;
	late PlantDetailData data;

	PlantDetailEntity();

	factory PlantDetailEntity.fromJson(Map<String, dynamic> json) => $PlantDetailEntityFromJson(json);

	Map<String, dynamic> toJson() => $PlantDetailEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PlantDetailData {
	late int id;
	late String name;
	late String image;
	late String description;
	late String region;
	late String type;

	PlantDetailData();

	factory PlantDetailData.fromJson(Map<String, dynamic> json) => $PlantDetailDataFromJson(json);

	Map<String, dynamic> toJson() => $PlantDetailDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}